﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace valerij_paschenko_web.Models
{
    public class Order
    {
        [Required]
        [DataType(DataType.EmailAddress)]
        public string FromEmail { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        public string ToEmail { get; set; }

        [Required]
        public string OrderDescription { get; set; }

        public Order() { }

        public Order(Order ord)
        {
            this.FromEmail = ord.FromEmail;
            this.ToEmail = ord.ToEmail;
            this.OrderDescription = ord.OrderDescription;
        }
    }
}